﻿using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Windows.WorkFlow.Service
{
    public class FlowNode
    {
        [JsonProperty("id")]
        public string Id { get; set; } = "";
        [JsonProperty("type")]
        public string Type { get; set; } = "";
        [JsonProperty("properties")]
        public FlowNodeProperty? Properties { get; set; }

    }
    public class FlowNodeProperty
    {
        [JsonProperty("text")]
        public string Text { get; set; } = "";
        [JsonProperty("isSuperior")]
        public bool IsSuperior { get; set; }
        [JsonProperty("roleIds")]
        public List<long>? RoleIds { get; set; }
        [JsonProperty("organizationIds")]
        public List<long>? OrganizationIds { get; set; }
        [JsonProperty("postIds")]
        public List<long>? PostIds { get; set; }
        [JsonProperty("postLevelIds")]
        public List<long>? PostLevelIds { get; set; }
        [JsonProperty("employeeIds")]
        public List<long>? EmployeeIds { get; set; }
        [JsonProperty("approveType")]
        public int ApproveType { get; set; }
    }
}
